package com.et114.modules.org.utility.tree;

//import java.util.List;

public abstract class AbstractNode implements Node {
    /**
	 * 
	 */
	private static final long	serialVersionUID	= - 5780548470080335174L;
//	private Node Parent;
//    private List children;
    private String id;
    private String name;
    protected boolean isRoot;
    protected boolean isLeaf;

    public AbstractNode() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isLeaf() {
        return getChildren() == null || getChildren().size() == 0;
    }

    public boolean isRoot() {
        return getParent() == null;
    }
}
